using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
namespace Seguridad
{
    public class Cryphography
    {
        public String encript(String text) {
            Byte[] strBytes = new UnicodeEncoding().GetBytes(text);

            strBytes = new SHA1CryptoServiceProvider().ComputeHash(strBytes);

            return Convert.ToBase64String(strBytes);
        }
    }
}
